// components/time_ticket_progress/time_ticket_progress.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    current: {type: Number},
    total: {type: Number},
    desc: {type: String},
  },

  observers: {
    "current": function(val) {
      if (this.data.total != 0) {
        this.setData({
          _left: Math.floor((this.data.total-val) * 100) / 100
        })
      }
    },
  },

  /**
   * 组件的初始数据
   */
  data: {

  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
